β±οΈ Do It Now
Create a OneNote Page and copy this into the title:
Lesson 2 - Spring 2 - FDE and Performance
Complete this the copy it into theOneNote Page
π― Learning Objectives
- LO1: We will be able to describe hat happens at each stage of the Fetch-Decode-Execute Cycle
- LO2: We will be able to explain how three key factors impact on the overall performance of a computer
π§ Recap on the CPU
In this part of the lesson we are going to explore how the CPU works.
Remember from last lesson we described how it is the brain of the computer
π Primary Memory
You may also remember from last lesson how the CPU fetches and processes each instruction from the Primary Memory, one at a time.
ποΈ The Fetch Decode Execute Cycle
The CPU and Primary Memory work together in order to make sure each instruction gets processed properly.
We call the process through which this happens the Fetch - Decode - Execute Cycle
We will now explore each stage of this process...
π¦΄π Fetching
A special part of the CPU called the Control Unit sends a signal to the primary memory, asking for the next instruction in the sequence
The instruction is then sent on a special communication line called a bus
Once the instruction is received the CPU gets ready for the next stage
π Decoding
Once the instruction has been received by the CPU it needs to work out what to do with it...
This process is known as decoding and is carried out by the Control Unit (the same part of the CPU that asked for the instruction).
Decoding is important because without it the CPU wouldn't know exactly how it must carry out the instruction.
πͺ Execution
Once the Control Unit has decoded the instruction it can now be carried out by another part of the CPU called the Arithmetic Logic Unit
Carrying out an instruction is called execution (excuse the silly image below).
Execution involves either arithmetic (calculating numbers) or logic (comparing one value to another)
π Independent Activity 1
Copy this into your OneNote Page and complete it
|
π Independent Activity (1) |
|
Explain what happens during each stage of the Fetch Decode Execute Cycle The Fetch Stage The Decode Stage The Execute Stage Refer to the following key terms: CPU - Control Unit - Bus - Primary Memory - Arithmetic Logic Unit - Calculations and Logical Decisions |
Extension Activity
Use the internet or copilot to research following
- Find out what registers are and how they are used in the CPU
- Find out what cache memory is and how it helps speed up the FDE cycle
π² CPU Performance Factors
In this part of the lesson we will learn about some important factors around the performance of the CPU.
We will also consider how these factors affect the speed and efficiency of the Fetch-Decode-Execute cycle.
π°οΈ Performance Factor - Clock Speed
Each instance of the CPU fetching, decoding and executing an instruction is called a cycle.
- There is a part of the CPU called the clock and this regulates how many cycles can occur each second.
- More cycles per second means a set of instructions will get carried out over a shorter time-scale.
- The clock speed is usually measured in Hertz
- Gigahertz (Ghz) meaning billions of times per second!
π Performance Factor - Bus Width
As you learned earlier, instructions travel along the bus from the primary memory to the CPU.
The number of bits (1s and 0s) that can travel along the bus at any given time is called the bus width.
Even with a fast CPU, a computer with a narrow bus width would be slow, because only a smaller chunk of each instruction could be fetched each cycle.
π Performance Factor - Primary Memory Speed
If a computer has a fast CPU with a wide bus, its performance can still be hindered by the speed of the primary memory.
Imagine having a super-charged processor that has to wait for instructions from an incredibly slow primary memory!
Reflection on CPU Performance Issues
|
π MWB Reflection Task |
|
Open the mini-whiteboard app in a new tab Your teacher will start with these leading questions:
|
Mini Whiteboard App: Click Here!
πLesson Plenary
Copy and paste this table into your OneNote Page
|
π― Wayground Quiz |
|
Click this link: https://wayground.com/join/quiz/699b7cfc68a54cdd4587f79b/start?from=admin&preview=true Paste your score below: |